package org.wiztools.jerseyjaxrs;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 *
 * @author subhash
 */
@Path("/")
public class JerseyJaxRS {
    @GET
    @Path("/hello.txt")
    @Produces(MediaType.TEXT_PLAIN)
    public HelloBean getText() {
        return new HelloBean();
    }
    
    @GET
    @Path("/hello.json")
    @Produces(MediaType.APPLICATION_JSON)
    public HelloBean getJSON() {
        return new HelloBean();
    }
    
    @GET
    @Path("/hello.xml")
    @Produces(MediaType.APPLICATION_XML)
    public HelloBean getXML() {
        return new HelloBean();
    }
}
